home *** CD-ROM | disk | FTP | other *** search
- /*
- File: SIZERC.h
-
- Contains: xxx put contents here xxx
-
- Owned by: Nick Pilch
-
- Copyright: © 1996 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <2> 6/23/96 NP 10002: Launch time speedups.
- <1> 6/21/96 NP first checked in
-
- To Do:
- */
-
- /*
- ** SizeRC.h
- ** (c) 1996 Apple Computer All Rights Reserved
- **
- ** Data structures for handling the Finder 'SIZE' resource.
- **
- */
-
- #ifndef SIZERC_H
- #define SIZERC_H
-
- #ifndef __TYPES__
- #include <Types.h>
- #endif
-
- #ifndef __MEMORY__
- #include <Memory.h>
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #if PRAGMA_ALIGN_SUPPORTED
- #pragma options align=mac68k
- #endif
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import on
- #endif
-
- enum {
- kOriginalSIZEResourceID = -1, /* Created by developer to hold "Factory Defaults" */
- kMaximumSIZEResourceID = 0, /* Holds custom max size, default min size */
- kMinimumSIZEResourceID = 1 /* Holds custom max size, custom min size */
- };
-
- typedef struct {
-
- unsigned short flags; /* Stationery Aware, etc. */
- unsigned long preferredMemorySize; /* Set by user */
- unsigned long minimumMemorySize; /* Set by developer */
-
- } SIZEResourceRec, **SIZEResourceHandle;
-
-
- OSErr GetOriginalSize (short resFile, Size& minimum, Size& maximum);
- OSErr GetCustomSize (short resFile, Size& minimum, Size& maximum);
- OSErr SetCustomSize (short resFile, Size minimum, Size maximum);
- SIZEResourceHandle GetSIZEResource (short resFile, short id);
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import off
- #endif
-
- #if PRAGMA_ALIGN_SUPPORTED
- #pragma options align=reset
- #endif
-
- #ifdef __cplusplus
- }
- #endif
-
-
- #endif
-
-